package com.yan.qing.sensitive.annations;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yan.qing.sensitive.enums.SensitiveEnum;
import com.yan.qing.sensitive.serialize.SensitiveSerialize;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author Administrator
 */
@Retention ( RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize (using = SensitiveSerialize.class)
public @interface  SensitiveWrapped {
    /**
     * 脱敏类型
     * @return
     */
    SensitiveEnum value();
}
